Each chemical element absorbs a characteristic set of colors. By matching these to missing colors from a star's spectrum, we can determine which elements are in the star's atmosphere.